import request from '@/utils/request'

// 查询煤矿外购运输计划列表
export function listUnitPlan(query) {
  return request({
    url: '/basicInfo/unitPlan/list',
    method: 'get',
    params: query
  })
}

// 查询煤矿外购运输计划详细
export function getUnitPlan(id) {
  return request({
    url: '/basicInfo/unitPlan/' + id,
    method: 'get'
  })
}

// 新增煤矿外购运输计划
export function addUnitPlan(data) {
  return request({
    url: '/basicInfo/unitPlan',
    method: 'post',
    data: data
  })
}

// 修改煤矿外购运输计划
export function updateUnitPlan(data) {
  return request({
    url: '/basicInfo/unitPlan',
    method: 'put',
    data: data
  })
}

// 删除煤矿外购运输计划
export function delUnitPlan(id) {
  return request({
    url: '/basicInfo/unitPlan/' + id,
    method: 'delete'
  })
}
